package cn.luowb.checkchat.dto.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;

@Data
@Schema(description = "新增帖子参数")
public class PostReqDTO {

    @Schema(description = "分类id",
            example = "1",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private Long cateId;

    @Schema(description = "帖子标题",
            example = "这是一个帖子标题",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String title;

    @Schema(description = "帖子内容",
            example = "这是帖子内容",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String content;

    @Schema(description = "图片数组",
            example = "\"[\\\"http://example.com/image1.jpg\\\",\\\"http://example.com/image2.jpg\\\"]\"",
            requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private ArrayList<String> media;

}
